package com.gpframework.module.manufacture.service;

import com.gpframework.module.manufacture.domain.GpProductionDetails;
import com.gpframework.module.manufacture.domain.req.GpProductionDetailsUpdate;
import com.gpframework.module.manufacture.domain.vo.GpProductionDetailsVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import java.util.List;
/**
 * @ClassName GpProductionDetails
 * @Author gpframework
 * @Date 2023-12-11
 * @Version 1.0.0
 * @Description 做货明细Service接口
 */
public interface IGpProductionDetailsService extends IService<GpProductionDetails> {

    /**
     * @Description 查询列表返回VO 用于返回给前端的列表接口
     * @Author gpframework
     * @Date 2023-12-11
     * @Param [lqw]
     * @Return List<GpProductionDetailsVo>
     */
    List<GpProductionDetailsVo> listVo(QueryWrapper<GpProductionDetails> lqw);

    /**
     * @Description 通过查询详情VO 用于返回给前端的列详情接口
     * @Author gpframework
     * @Date 2023-12-11
     * @Param [id]
     * @Return GpProductionDetailsVo
     */
    GpProductionDetailsVo getVoById(Long id);

    boolean edit(List<GpProductionDetailsUpdate> list);

    boolean editOne(GpProductionDetailsUpdate gpProductionDetailsUpdate);

    /**
     * 复制
     * @param id
     * @param copyNum
     * @return
     */
    boolean copy(Long id, Integer copyNum);

    boolean splitOrders(Long id, Integer splitNum);



    void init(GpProductionDetails gpProductionDetails);


    void initNoSn(GpProductionDetails gpProductionDetails);
}
